import { getFldm } from '@/utils/get-fldm'
export const formItem = async (key: string) => {
  const obj: any = {
    dshList: [
      {
        disabled: false,
        label: '案件名称',
        prop: 'ajmc',
        type: 'input',
        placeholder: '请输入案件名称',
        iswm: 'Y',
        options: [],
      },
      {
        disabled: false,
        label: '部门受案号',
        prop: 'bmsah',
        type: 'input',
        placeholder: '请输入部门受案号',
        iswm: 'Y',
      },
      {
        disabled: false,
        label: '统一受案号',
        prop: 'tysah',
        type: 'input',
        placeholder: '请输入统一受案号',
        iswm: 'Y',
      },
      {
        disabled: false,
        label: '归档人',
        prop: 'gdr',
        type: 'input',
        placeholder: '请输入归档人',
        iswm: 'Y',
      },
      {
        disabled: false,
        label: '提交日期',
        prop: 'tj-rq',
        type: 'daterange',
        placeholderStart: '开始时间',
        placeholderEnd: '结束时间',
        iswm: 'Y',
      },
      {
        disabled: false,
        label: '纸质案卷',
        prop: 'sfzzajdm',
        type: 'select',
        placeholder: '请选择纸质案卷',
        iswm: 'Y',
        options: await getFldm('gd009'),
      },
      {
        disabled: false,
        label: '音像',
        prop: 'sfyspdm',
        type: 'select',
        placeholder: '请选择音像',
        iswm: 'Y',
        options: await getFldm('gd017'),
      },
    ],
  }
  return obj[key]
}
